<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/amazeui.min.css"/>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/hy.admin.css"/>
	</head>
	<body>
	<div class="am-g">
		 {include file='../Common/hy_header.html'}
		 <div class="am-g">
			<br>
			<div class="am-u-md-8 am-u-end">
				<form class="am-form am-form-horizontal hy-js-form">
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">礼品名</label>
						<div class="am-u-sm-6">
							<input type="text" name="name" value="{$persent.name}" placeholder="">
						</div>
						<div class="am-u-sm-3">
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">外链地址</label>
						<div class="am-u-sm-6">
							<input type="text" name="url" value="{$persent.url|default:'http://'}" placeholder="">
						</div>
						<div class="am-u-sm-3">
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">签到次数</label>
						<div class="am-u-sm-6">
							<input type="text" name="number" value="{$persent.number}">
						</div>
						<div class="am-u-sm-3">
						</div>
					</div>
					<!--<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label"> 上传图片</label>
						<div class="am-u-sm-6">
							<input type="text" name="thumb" class="am-input-sm" value="{$persent.thumb}">
							
				            	
						</div>
						<div class="am-u-sm-3">
							 <img id="hy-thumb" style="height: 30px;" {if $persent.thumb} src="{$persent.thumb}" {else} src="{$_C.hy_path}images/logo2.png" {/if}>
			             		<button class="am-btn am-btn-primary am-btn-xs hy-js-uploadimg" >上传</button>
						</div>
					</div>-->
					<div class="am-form-group">
						<div class="am-u-sm-9 am-u-sm-push-3">
							<input type="hidden" name="id" value="{$id}">
							<button type="button" class="am-btn am-btn-primary hy-js-submit">{$_L.SAVE}</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
	  {include file='../Common/hy_footer.html'}
	<script type="text/javascript" src="{$_C.hy_path}js/editor/kindeditor.js"></script>
	<script type="text/javascript">
	    hy_uploadimg('/ad',{},function(result){
	    	if(typeof(result[0])!='undefined')
	    	{
	        	$('#hy-thumb').attr('src',"/ws"+result[0]);
	        	$('input[name=thumb]').val(result[0]).focus();
	       }
	    })
	    
	    hy_submit('index.php?g=admin&m=sign&a={$action}');
	</script>
	</body>
</html>
